package com.xuecheng.manage_cms.service;

import com.xuecheng.framework.domain.cms.CmsPage;
import com.xuecheng.framework.domain.cms.request.QueryPageRequest;
import com.xuecheng.framework.domain.cms.response.CmsPageResult;
import com.xuecheng.framework.model.response.QueryResponseResult;
import com.xuecheng.framework.model.response.ResponseResult;

/**
 * @author czy
 * @date 2019/6/18
 */
public interface CmsPageService {
    QueryResponseResult findList(int page,int size, QueryPageRequest queryPageRequest);

    CmsPageResult add(CmsPage cmsPage);

    CmsPage findById(String id);

    CmsPageResult update(String id,CmsPage cmsPage);

    ResponseResult deleteById(String id);

    /**
     * 页面静态化方法
     * @param pageId 页面id
     * @return
     */
    String getPageHtml(String pageId);
}
